package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    PageResult pageQuery(QueryPageBean queryPageBean);

    User findById(int id);

    void edit(User user);

    void delete(int id);

    void addUser(User user);

    List<Integer> findroleIdsByuserId(int id);

    void addRole(Integer[] checkroleIds, Integer userid);



}
